package com.flyqiu.flow.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyqiu.flow.model.entity.base.FlowBaseDao;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;


/**
 * 流程发布定义
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(title = "ProcDeployDef", description = "流程发布定义信息")
@TableName(ProcDeployDef.TABLE_NAME)
public class ProcDeployDef extends FlowBaseDao {
    public static final String TABLE_NAME = "FLY_FLOW_GE_DEPLOY_DEF";

    /**
     * 流程发布定义key(与流程模型key一致)
     */
    @TableField("PROC_DEPLOY_DEF_KEY_")
    private String procDeployDefKey;
    /**
     * 流程发布名称（与流程模型名称一致）
     */
    @TableField("PROC_DEPLOY_DEF_NAME_")
    private String procDeployName;
    /**
     * 流程发布类型（与流程模型类别一至）
     */
    @TableField("PROC_DEPLOY_DEF_CATEGORY_")
    private String procDeployCategory;

    /**
     * 执行类型
     */
    @TableField("PROC_EXECUTE_TYPE_")
    private String procExecuteType;
    /**
     * 发布版本
     */
    @TableField("PROC_DEPLOY_DEF_VERSION_")
    private Integer procDeployVersion;
    /**
     * 流程定义状态
     */
    @TableField("PROC_DEPLOY_DEF_STATUS_")
    private Integer procDefStatus;

    /**
     * 发布资源id
     */
    @TableField("DEPLOY_SOURCE_ID_")
    private String deploySourceId;
    /**
     * 租户id
     */
    @TableField("TENANT_ID_")
    private String tenantId;
    /**
     * 创建时间
     */
    @TableField("CREATE_TIME_")
    private LocalDateTime createTime;

}
